using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;
using WebFoundation.Data;
using MHI.InspectionManager.Data; 
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Business
{
	/// <summary>
	/// DevJobpersonsTList, table list:dev_jobpersons_t 
	/// </summary>
	internal class DevJobpersonsTList : BaseWritableEntities<DevJobpersonsT>, IDevJobpersonsTList
	{
		private DevJobpersonsTQueryDAO _queryDAO;
		private DevJobpersonsTWritingDAO _writeDAO;

		public DevJobpersonsTList(DevJobpersonsTQueryDAO queryDao, DevJobpersonsTWritingDAO writtingDao) : base(queryDao, writtingDao)
		{
			this._queryDAO = queryDao;
			this._writeDAO = writtingDao;
		}

		/// <summary>
		/// 获取所有DevJobpersonsT,table items:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobpersonsT> GetDevJobpersonsTAllItems()
		{
			return _queryDAO.GetDevJobpersonsTAllItems().ToList();
		}

		/// <summary>
		/// 根据id，获取所有DevJobpersonsT,table items:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public IEnumerable<DevJobpersonsT> GetDevJobpersonsTItemsById(int id)
		{
			return _queryDAO.GetDevJobpersonsTItemsById(id);
		}

		/// <summary>
		/// 增加一行DevJobpersonsT,table item:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobpersonsT(DevJobpersonsT item)
		{
			return this._writeDAO.AddDevJobpersonsT(item);
		}

		/// <summary>
		/// 增加多行DevJobpersonsT,table items:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public bool AddDevJobpersonsTs(DevJobpersonsT[] items)
		{
			return this._writeDAO.AddDevJobpersonsTs(items);
		}

		/// <summary>
		/// 更新一行DevJobpersonsT,table item:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobpersonsT(DevJobpersonsT item)
		{
			return this._writeDAO.UpdateDevJobpersonsT(item);
		}

		/// <summary>
		///  更新多行DevJobpersonsT,table items:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public bool UpdateDevJobpersonsTs(DevJobpersonsT[] items)
		{
			return this._writeDAO.UpdateDevJobpersonsTs(items);
		}

		/// <summary>
		/// 删除一行DevJobpersonsT,table item:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobpersonsT(DevJobpersonsT item)
		{
			return this._writeDAO.DeleteDevJobpersonsT(item);
		}

		/// <summary>
		///  删除多行DevJobpersonsT,table items:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobpersonsTs(DevJobpersonsT[] items)
		{
			return this._writeDAO.DeleteDevJobpersonsTs(items);
		}

		/// <summary>
		///  根据ids，删除多行DevJobpersonsT,table entity:dev_jobpersons_t信息 
		/// </summary>
		/// <returns></returns>
		public bool DeleteDevJobpersonsTByIds(int[] ids)
		{
			return this._writeDAO.DeleteDevJobpersonsTByIds(ids);
		}

	}
}
